﻿
@{
    Layout = "~/Views/Shared/Index.cshtml";
}
@model  List<YaYun.Models.Employee>

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>ADDSalary</title>
    <style>
        .well {
            background-color: #fff;
            /*   border: 1px solid #ccc;*/
            -webkit-box-shadow: 1px 1px 0px #ffffff;
            -moz-box-shadow: 1px 1px 0px #ffffff;
            box-shadow: 1px 1px 0px #ffffff;
            -webkit-border-radius: 0px;
            -moz-border-radius: 0px;
            border-radius: 0px;
            -moz-background-clip: padding;
            -webkit-background-clip: padding-box;
            background-clip: padding-box;
            height: 50vh;
            width: 50vh;
        }
    </style>
</head>
<body>
    <div class="">


        @{
            DateTime date = DateTime.Now;
            string formattedDate = date.ToString("yyyy-MM-dd");
        }

        @using (Html.BeginForm("ADDSalary", "Home", FormMethod.Get))
        {
            <div class="layui-form-item">
                <div class="layui-input-group">
                    <div class="layui-input-split layui-input-prefix">
                        用户名
                    </div>
                    <input type="text" class="layui-input" name="name" placeholder="输入姓名查询" value="@ViewBag.SearchName">
                    <div class="layui-input-suffix">
                        <button type="submit" class="layui-btn">查询</button>
                    </div>
                </div>
            </div>
        }

        @using (Html.BeginForm())
        {

            <div class="layui-form">
                <div class="layui-input-group">
                    <div class="layui-input-split layui-input-prefix">
                        姓&emsp;名
                    </div>
                    <select name="employee_id" required lay-filter="demo-select-filter">
                        @foreach (var item in Model)
                        {
                            <option value="@item.id">@item.EmployeeName</option>

                        }
                    </select>
                </div>
            </div>
            <br />
            @*<div class="layui-form-item">
                <div class="layui-input-group">
                    <div class="layui-input-split layui-input-prefix">
                        编&emsp;号
                    </div>
                    <input type="text" placeholder="请输入" name="employee_id" class="layui-input">
                </div>
            </div>*@
            <div class="layui-form-item">
                <div class="layui-input-group">
                    <div class="layui-input-split layui-input-prefix">
                        金&emsp;额
                    </div>
                    <input type="text" placeholder="请输入" name="amount" class="layui-input">
                </div>
            </div>

            <div class="layui-inline">
                <div class="layui-input-group">
                    <div class="layui-input-split layui-input-prefix">
                        入职时间
                    </div>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input" name="Paytime" id="ID-laydate-type-datetime" placeholder="yyyy-MM-dd">
                    </div>
                </div>
            </div>
            <br />
            <br />
            <div class="layui-form-item">
                <div class="layui-input-group">
                    <div class="layui-input-split layui-input-prefix">
                        发放方式
                    </div>
                    <input type="text" placeholder="请输入" name="Salary_play_method" value="银行卡"   class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-group">
                    <div class="layui-input-split layui-input-prefix">
                        卡&emsp;号
                    </div>
                    <input type="text" placeholder="请输入" name="bank" class="layui-input">
                </div>
            </div>

            <br />
            <input type="submit" class="btn btn-primary" value="确认添加" />
            <a href="/home/AllEmployeeADDsalary" class="btn   btn-block btn-link bor_a">取 &emsp;消</a>
        }


    </div>


</body>
</html>


<script>
    layui.use(function () {
        var laydate = layui.laydate;
        // 年选择器
        laydate.render({
            elem: '#ID-laydate-type-year',
            type: 'year'
        });

        // 年月选择器
        laydate.render({
            elem: '#ID-laydate-type-month',
            type: 'month'
        });

        // 时间选择器
        laydate.render({
            elem: '#ID-laydate-type-time',
            type: 'time'
        });

        // 日期时间选择器
        laydate.render({
            elem: '#ID-laydate-type-datetime',
            type: 'datetime'
        });
        // 日期时间选择器 - 日期和时间选择器同时显示（全面板）
        laydate.render({
            elem: '#ID-laydate-type-datetime-1',
            type: 'datetime',
            fullPanel: true // 2.8+
        });
    });
</script>
